package com.ctgu.edu.service.impl;

import com.ctgu.edu.dao.AccountMapper;
import com.ctgu.edu.dao.SeekerMapper;
import com.ctgu.edu.pojo.Account;
import com.ctgu.edu.pojo.Resume;
import com.ctgu.edu.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    @Qualifier("accountMapper")
    private AccountMapper accountMapper;

    public void addAccount(Account account) {
        accountMapper.addAccount(account);
    }

    public void deleteAccountById(String accountId) {
        accountMapper.deleteAccountById(accountId);
    }

    public void updateAccount(Account account) {
        accountMapper.updateAccount(account);
    }

    public Account getAccountById(String accountId) {
        return accountMapper.getAccountById(accountId);
    }
}
